package com.ezandroid.alphago.engine;

/**
 * Holds the coordinates and color of individual stones
 */
public class Stone implements Cloneable {

    public StoneColor color;
    public Intersection intersection;
    public int number;

    @Override
    protected Stone clone() throws CloneNotSupportedException {
        Stone clone = (Stone) super.clone();
        clone.color = color;
        clone.intersection = intersection.clone();
        return clone;
    }

    @Override
    public String toString() {
        return "Stone{" +
                "color=" + color +
                ", intersection=" + intersection +
                ", number=" + number +
                '}';
    }
}
